package com.example.tester.service;

import java.util.concurrent.TimeUnit;

/**
 * @author lzh
 * @date 2019/9/9 - 17:11
 */
public interface SRTService {



    Object getObj(String key);

    Object getHash(String hash , String hk);



    void saveStringType(String key, String str, long expireTime , TimeUnit unit);
    void saveString(String key, String value);


    void saveHash(String hash, String hk , String hv);
    void saveList(String key, String list);
    void saveZSet(String key, String zSet , Double score);
    void saveSet(String key, String set );


    void deleteObj(String key);


}
